/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.goods.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 测试数据Entity
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Table(name = "zt_quan", alias = "a", columns = {
		@Column(name = "id", attrName = "id", label = "编号", isPK = true),
		@Column(name = "name", attrName = "name", label = "商品名称", queryType = QueryType.LIKE),
		@Column(name = "remarks", attrName = "remarks", label = "商品价格", queryType = QueryType.EQ),
		@Column(name = "status", attrName = "status", label = "商品详情"),
		@Column(name = "edu", attrName = "edu", label = "商品编号"),
		@Column(name = "total", attrName = "total", label = "商品颜色"),
		@Column(name = "usetotal", attrName = "usetotal", label = "商品颜色"),
		@Column(name = "islimit", attrName = "islimit", label = "是否限量"),
		
		@Column(name = "level_range", attrName = "levelRange", label = "发券人范围"),
		
		@Column(name = "over_count", attrName = "overCount", label = "商品关键词"),
		@Column(name = "to_time", attrName = "toTime", label = "状态0正常  1已删除"),
		
		@Column(name = "img", attrName = "img", label = "券图片"),
		@Column(name = "create_date", attrName = "createDate", label = "创建时间"),
		@Column(name = "price", attrName = "price", label = "库存数量"),
		@Column(name = "type", attrName = "type", label = "分类类型  1活动免费券，2活动优惠券  3店铺免费券 4店铺优惠券"),
		@Column(name = "usestatus", attrName = "usestatus", label = "分类类型  0有效  1失效"),
		

		 },orderBy = "a.create_date DESC")
public class ZtQuan extends DataEntity<ZtQuan>{

	private static final long serialVersionUID = 1L;
	
	private String getStatus;
	
	private String name;//券名
	private String remarks;
	private String status;
	private Double edu;//满额
	private Integer total;//已经领取的券
	
	private String islimit;//是否限量    0无限量      1只能1张
	
	private Integer overCount;//剩余券
	
	private String levelRange;//发券人范围（0全部  1特级代理   2一级代理    3二级代理     4优享会员     5普通用户）
	private Date createDate;//开始时间
	
	private Date toTime;//到期时间
	
	private String img;
	private String type;         //券类型：   1活动推广免费券    2活动推广优惠券      3店铺免费券      4店铺优惠券
	private Double price;//面额
	private String usestatus;//是否有效   0 有效       1无效
	
	private Integer usetotal;//已使用的券
	
	public String getIslimit() {
		return islimit;
	}
	public void setIslimit(String islimit) {
		this.islimit = islimit;
	}
	public String getGetStatus() {
		return getStatus;
	}
	public void setGetStatus(String getStatus) {
		this.getStatus = getStatus;
	}
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private Date updateDate;
	
	
	
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public String getLevelRange() {
		return levelRange;
	}
	public void setLevelRange(String levelRange) {
		this.levelRange = levelRange;
	}
	public Integer getUsetotal() {
		return usetotal;
	}
	public void setUsetotal(Integer usetotal) {
		this.usetotal = usetotal;
	}
	public String getUsestatus() {
		return usestatus;
	}
	public void setUsestatus(String usestatus) {
		this.usestatus = usestatus;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Double getEdu() {
		return edu;
	}
	public void setEdu(Double edu) {
		this.edu = edu;
	}
	public Integer getTotal() {
		return total;
	}
	public void setTotal(Integer total) {
		this.total = total;
	}
	public Integer getOverCount() {
		return overCount;
	}
	public void setOverCount(Integer overCount) {
		this.overCount = overCount;
	}
	
	@JsonFormat(pattern = "MM月dd HH:mm")
	public Date getToTime() {
		return toTime;
	}
	public void setToTime(Date toTime) {
		this.toTime = toTime;
	}
	
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	
	
	
}